﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PROJECT_BOMBER.BLL
{
    public class Trampolline : ElementPhysique, ICloneable
    {
        public Trampolline(int x, int y, int width, int height)
            : base(x, y, width, height)
        {
            CollisionStrategy = new ReboundCollision();
        }

        #region ICloneable Membres

        public object Clone()
        {
            Trampolline tramp = new Trampolline((int)this.Position.X, (int)this.Position.Y, this.Width, this.Height);
            foreach (KeyValuePair<string, AnimationSprite> value in this.Animations)
            {
                tramp.AddAnimation(value.Key, value.Value);
            }
            return tramp;
        }

        #endregion
    }
}
